package phoenics.manpads.stinger.service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Phoenics Chow
 * on 2019年01月23日
 */
public class PageList<T> {
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PageList.class);
    private int page;   //当前页
    private int totalRows;   //总行数
    private int pages;    //总页数
    private List<T> list=new ArrayList<T>();

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public List<T> getList() {
        if(list==null){
            list=new ArrayList<>();
        }
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public int getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(int totalRows) {
        this.totalRows = totalRows;
    }
}
